body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
}

.user-management-container {
    margin: 30px auto;
    padding: 30px;
    width: 80%;
    max-width: 1200px;
    background: rgba(25, 42, 49, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(72, 219, 251, 0.1);
    box-shadow: 0 0 20px rgba(72, 219, 251, 0.1);
    border-radius: 12px;
}

h1 {
    text-align: center;
    background: linear-gradient(45deg, #0f2027, #2c5364);
    border: 1px solid rgba(72, 219, 251, 0.2);
    color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    text-shadow: 0 0 10px rgba(72, 219, 251, 0.5);
    position: relative;
    overflow: hidden;
}

h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #48dbfb, transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.user-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.user-stat-card {
    background: rgba(72, 219, 251, 0.05);
    border: 1px solid rgba(72, 219, 251, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.user-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(72, 219, 251, 0.2);
    border-color: rgba(72, 219, 251, 0.4);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(72, 219, 251, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 24px;
    color: #48dbfb;
}

.stat-info h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #48dbfb;
    text-shadow: 0 0 10px rgba(72, 219, 251, 0.3);
}

.user-action-btn {
    background: linear-gradient(45deg, #0f2027, #2c5364);
    border: 1px solid rgba(72, 219, 251, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
    position: relative;
    overflow: hidden;
}

.user-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(72, 219, 251, 0.2), transparent);
    transition: 0.5s;
}

.user-action-btn:hover::before {
    left: 100%;
}

.user-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.3);
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    margin: 0 auto; /* 确保居中 */
}

.modal h3 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    background: linear-gradient(45deg, #0f2027, #2c5364);
    border: 1px solid rgba(72, 219, 251, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.3);
}

.user-list {
    background: rgba(25, 42, 49, 0.9);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.user-list h2 {
    color: #48dbfb;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(72, 219, 251, 0.2);
}

.user-table-container {
    background: rgba(72, 219, 251, 0.05);
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(72, 219, 251, 0.1);
}

.user-table th {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    background: rgba(72, 219, 251, 0.1);
}

.user-table tr:hover {
    background: rgba(72, 219, 251, 0.05);
}

.cyber-back-btn {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 1001;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg,
    rgba(72, 219, 251, 0.15) 0%,
    rgba(15, 32, 39, 0.6) 100%);
    border: 1px solid rgba(72, 219, 251, 0.3);
    border-radius: 8px;
    color: #48dbfb;
    font-family: inherit;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(72, 219, 251, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cyber-back-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            45deg,
            transparent 40%,
            rgba(72, 219, 251, 0.1) 50%,
            transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.cyber-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.2),
    0 0 12px rgba(72, 219, 251, 0.1) inset;
    background: linear-gradient(135deg,
    rgba(72, 219, 251, 0.25) 0%,
    rgba(15, 32, 39, 0.8) 100%);
}

.cyber-back-btn:hover::before {
    opacity: 1;
    animation: scan-overlay 2.5s linear infinite;
}

.glow-text {
    filter: drop-shadow(0 0 2px #48dbfb);
}

@keyframes scan-overlay {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}


/* 权限状态样式 */
.status-super {
    background: #ff4757;
    border: 1px solid #ff6b81;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.3);
}

.status-admin {
    background: #2ed573;
    border: 1px solid #7bed9f;
    box-shadow: 0 0 8px rgba(46, 213, 115, 0.3);
}

.status-normal {
    background: #a4b0be;
    border: 1px solid #ced6e0;
}

.super-only {
    display: none;
}

/* 冻结账号样式 */
.status-badge.status-fourzerofour {
    border: 2px solid #ff4757; /* 红色边框 */
    color: #ff4757; /* 红色文字 */
    padding: 2px 8px;
    border-radius: 4px;
}

/* 高级管理员样式 */
.status-badge.status-super {
    border: none; /* 取消边框 */
    background: #2ed573; /* 绿色背景 */
    color: white; /* 白色文字 */
    padding: 2px 8px;
    border-radius: 4px;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: rgba(72, 219, 251, 0.1);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    background-color: rgba(72, 219, 251, 0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(25, 42, 49, 0.9);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(72, 219, 251, 0.1);
    color: #48dbfb;
}

.dropdown:hover .dropdown-content {
    display: block;
}
